package fr.ul.ade.maquette.ui;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.actionbarsherlock.app.SherlockFragment;

import fr.ul.ade.maquette.R;

/**
 * Fragment affichant le formulaire de création d'un emploi du temps.
 * 
 * @author Michaël Schnell
 * @since Jun 10, 2013
 * 
 * @version 1.0
 */
public class CreateScheduleFragment
		extends SherlockFragment {

	public static CreateScheduleFragment newInstance() {
		CreateScheduleFragment fragment = new CreateScheduleFragment();
		return fragment;
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		final View view = inflater.inflate(R.layout.fragment_create_schedule,
				container,
				false);

		((LinearLayout) view
				.findViewById(R.id.create_schedule_resources_container))
				.addView(inflater.inflate(R.layout.schedule_resource,
						container,
						false));

		return view;
	}

}